<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'consultation_list.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<Style type="text/css">
A {
	TEXT-DECORATION: none;
	Color: #000000
}

A:hover {
	TEXT-DECORATION: underline;
	Color: #4455aa
}

font {
	line-height: normal;
}

TD {
	font-family: Tahoma;
	font-size: 12px;
	line-height: 15px;
}

th {
	background-image: url(Skins/Default/css/default/bg1.gif);
	background-color: #4455aa;
	color: white;
	font-size: 12px;
	font-weight: bold;
	height: 25;
}

th a {
	COLOR: #FF0000;
	TEXT-DECORATION: none;
}

th a:hover {
	COLOR: #FF0000;
	TEXT-DECORATION: underline;
}

td.TableTitle1 {
	background-color: #6595D6;
	Color: #FFFFFF;
}

td.TableBody1 {
	background-color: #FFFFFF;
	line-height: normal;
}

.tableBorder5 {
	border: 1px #6595D6 solid;
	background-color: #D6E0EF;
}
</Style>
<Script Language="JavaScript" type="text/JavaScript"
	src="<%=basePath%>page/teacher/js/Page.js"></Script>

<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>

<Script Language="JavaScript" type="text/JavaScript"
	src="<%=basePath%>js/consultation.js"></Script>

</head>

<body
	style="
	background: url(<%=basePath%>img/bg.jpg) -200px -83px;
	background-attachment: fixed;">
<div style="border: solid 1px #4B6DA3;"><c:forEach
	items="${requestScope.consultationList}" var="consultation">
	<div>&nbsp; 姓名：${consultation.userName } <br>
	&nbsp;&nbsp;email：${consultation.email } <br>
	&nbsp;&nbsp;咨询时间：${consultation.questionTime } <br />
	&nbsp;&nbsp;question：${consultation.question }</div>
	<br />
	<div>&nbsp;&nbsp;<a
		href="ConsultationServlet?action=del&consultationID=${consultation.consultationID }">删除</a>&nbsp;|&nbsp;
	</div>
	<div id="reply${consultation.consultationID }" style="display: none">
	<textarea rows="5" cols="70" name="replyText"
		id="replyText${consultation.consultationID }"></textarea><br />
	<input type="button" value="确定"
		onclick="submitReply(${consultation.consultationID })" /> <input
		type="button" value="取消"
		onclick="cancelReply(${consultation.consultationID })" /></div>
	<hr />
</c:forEach>
</body>
</html>
